<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddIsSendLoanToLoanApply extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('loan_apply', function (Blueprint $table) {
            $table->tinyInteger('is_send_loan')->default(0)->comment('是否发起过要款操作并且成功放款 2已请求且已成功 1已发起请求');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::table('loan_apply', function (Blueprint $table) {
            $table->dropColumn('is_send_loan');
        });
    }
}
